package com.toivan.mt.model;

import android.content.Context;
import android.graphics.drawable.Drawable;


import androidx.annotation.NonNull;

import com.toivan.mt.R;
import com.toivan.sdk.model.MtFunnyFilter;

public enum MtFunnyFilterEnum {
    NO_FILTER(R.string.none, MtFunnyFilter.NO_FUNNY_FILTER, R.drawable.icon_funny_none),
    ALIEN(R.string.funny_alien, MtFunnyFilter.ALIEN_FUNNY_FILTER, R.drawable.icon_funny_alien),
    BIG_NOSE(R.string.funny_big_nose, MtFunnyFilter.BIG_NOSE_FUNNY_FILTER, R.drawable.icon_funny_bignose),
    BIG_MOUTH(R.string.funny_big_mouth, MtFunnyFilter.BIG_MOUTH_FUNNY_FILTER, R.drawable.icon_funny_bigmouth),
    SQUARE_FACE(R.string.funny_square_face, MtFunnyFilter.SQUARE_FACE_FUNNY_FILTER, R.drawable.icon_funny_square_face),
    BIG_HEAD(R.string.funny_big_head, MtFunnyFilter.BIG_HEAD_FUNNY_FILTER, R.drawable.icon_funny_bighead),
    PLUMP_FACE(R.string.funny_plump_face, MtFunnyFilter.PLUMP_FACE_FUNNY_FILTER, R.drawable.icon_funny_plump_face),
    PEAS_EYES(R.string.funny_peas_eyes, MtFunnyFilter.PEAS_EYES_FUNNY_FILTER, R.drawable.icon_funny_peas_eyes),
    LARGE_FOREHEAD(R.string.funny_large_forehead, MtFunnyFilter.LARGE_FOREHEAD_FUNNY_FILTER, R.drawable.icon_funny_large_forehead),
    ARCH_FACE(R.string.funny_arch_face, MtFunnyFilter.ARCH_FACE_FUNNY_FILTER, R.drawable.icon_funny_arch_face),
    SNAKE_SPIRIT(R.string.funny_snake_spirit_face, MtFunnyFilter.SNAKE_SPIRIT_FUNNY_FILTER, R.drawable.icon_funny_snake_spirit_face);

    private int stringId;
    private MtFunnyFilter funnyFilter;
    private int imageId;

    MtFunnyFilterEnum(int stringId, MtFunnyFilter funnyFilter, int imageId) {
        this.stringId = stringId;
        this.funnyFilter = funnyFilter;
        this.imageId = imageId;
    }


    public String getString(@NonNull Context context) {
        return context.getResources().getString(stringId);
    }

    public MtFunnyFilter getFunnyFilter() {
        return funnyFilter;
    }

    public Drawable getImageDrawable(@NonNull Context context) {
        return context.getResources().getDrawable(imageId);
    }



}


